package output

import (
	"gitee.com/krio/ginc/example/core/exerr"
	"github.com/gin-gonic/gin"
)

const OutputDefault = "default"

// DefaultFormatter 默认格式
type DefaultFormatter struct {
}

func (f *DefaultFormatter) Format(ctx *gin.Context, resp exerr.IExerr) {
	ctx.JSON(resp.GetHTTPStatus(), resp)
}
